package at.ac.tuwien.lsds;

import java.io.IOException;

import org.apache.log4j.BasicConfigurator;
import org.apache.log4j.Logger;

import at.ac.tuwien.lsds.exception.SchedulerException;
import at.ac.tuwien.lsds.model.ScheduleStrategyEnum;
import at.ac.tuwien.lsds.schedule.Scheduler;
import at.ac.tuwien.lsds.schedule.SchedulerImpl;
import at.ac.tuwien.lsds.testDataGenerator.InputDataGenerator;
import at.ac.tuwien.lsds.util.Settings;

public class Main {

	private static final Logger log = Logger.getLogger(Main.class);

	public static void main(String[] args) {
		BasicConfigurator.configure();

		Settings.resetToDefault();
		
		Settings.setPmCount(29);

		Settings.setScheduler(ScheduleStrategyEnum.D);

		// CREATE inputData.csv
//		try {
//			new InputDataGenerator().createInputDataFile();
//		} catch (IOException e1) {
//			log.error("Could not create File!");
//		}

		Scheduler s = new SchedulerImpl();
		try {
			s.schedule();
		} catch (SchedulerException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		
	}

}
